package com.mybatis.flex.enums;

import com.mybatisflex.annotation.EnumValue;

public enum TypeEnum {
    PERSON(1,"个人"),
    COMPANY(2,"公司");

    @EnumValue
    public int code;

    public String desc;

    TypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
